package gwtmodule1.client.gui.salesdept;

import gwtmodule1.client.gui.shared.CartTable;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class PageEditOrderItems extends VerticalPanel implements FrameClient {

	public PageEditOrderItems() {
		super();
		add(new Title("Shopping Cart"));
		add(createTable());
	}

	private Widget createTable() {
		CartTable table = new CartTable();
		for (int i = 1; i < 5; i++) {
			table.addItem("Company" + i, "DVD Player " + i, (i + 30) * i,
					(i * 3 % 4) + 1);
		}
		table.setGiftcard(60);
		table.setTax(5.5, 55.55f);
		table.setShipping(13.3f);
		table.setTotal(123123.56f);
		return table;
	}
	public void onShow(Object param) {
	}

}
